#include <stdio.h>
#include <string.h>
int main()
{
    char dic[10][6] = {{" 0"}, {"!1,.?"}, {"C2AB"}, {"F3DE"}, {"I4GH"}, {"L5JK"}, {"O6MN"}, {"S7PQR"}, {"V8TU"}, {"Z9WXY"}};
    /*
    dic[1]="!1,.?";
    dic[2]="C2AB";
    dic[3]="F3DE";
    dic[4]="I4GH";
    dic[5]="L5JK";
    dic[6]="O6MN";
    dic[7]="S7PQR";
    dic[8]="V8TU";
    dic[9]="Z9WXY";
    dic[0]=" 0";
    */
    int len;
    int tar;
    char in[500];
    int n, loc;
    while (scanf("%s", in) != EOF)
    {
        len = strlen(in);
        tar = in[0] - '0';
        len = len % strlen(dic[tar]);
        printf("%c", dic[tar][len]);
    }
    return 0;
}